package br.uefs.cedoc.util;



import java.util.ResourceBundle;

/**
 * Classe responsavel pela configuraco do Banco de Dados
 * @author SMAU
 *
 */
public class ConfigDB {

	
	
	public static boolean DEBUG;
	
	/**
	 * Driver do BANCO DE DADOS
	 */
	public static String	DB_DRIVER;


	public static int	DB_MIN_CON ;

	public static int	DB_MAX_CON ;

	public static String	DB_SERVER_HOST;

	public static String	DB_USERNAME;	

	public static String	DB_PASSWORD;	

	public static String	DB_LOG; 
	
	
	private static ResourceBundle properties;
	static{
		properties = ResourceBundle.getBundle("configDB");
		
		
		DB_DRIVER = properties.getString("DB_DRIVER");
		DB_MIN_CON = Integer.parseInt(properties.getString("DB_MIN_CON"));
		DB_MAX_CON = Integer.parseInt(properties.getString("DB_MAX_CON"));
		DB_SERVER_HOST = properties.getString("DB_SERVER_HOST").trim();
		DB_USERNAME = properties.getString("DB_USERNAME").trim();
		DB_PASSWORD = properties.getString("DB_PASSWORD").trim();
		DB_LOG = properties.getString("DB_LOG").trim();
		
		DEBUG =  Boolean.parseBoolean(properties.getString("DEBUG").trim());
	}
}

